package bf.program.command;

import java.io.UnsupportedEncodingException;

import org.objectweb.asm.MethodVisitor;

import bf.program.Command;
import bf.program.State;

public class OutputCharacter extends Command {

	@Override
	public void execute(State state) {
		state.OC();
	}

	@Override
	public void genCode(MethodVisitor mv) {
		mv.visitVarInsn(ALOAD, 0);
		mv.visitMethodInsn(INVOKEVIRTUAL, "bf/program/State", "OC", "()V");
	}

}
